home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: Nicholas Paldino <np1010@cnsunix.albany.edu>
- Newsgroups: comp.lang.c
- Subject: Passing commands to a program invoked using a system() call...
- Date: Wed, 10 Jan 1996 23:17:13 -0800
- Organization: Netcom
- Message-ID: <30F4B979.5176@cnsunix.albany.edu>
- NNTP-Posting-Host: ix-nyc15-02.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-NETCOM-Date: Wed Jan 10 8:22:09 PM PST 1996
- X-Mailer: Mozilla 2.0b4a (Win95; I; 16bit)
-
- Dear comp.lang.c readers,
-
- I am currently trying to write a program which will be a kind of
- launching point for another program called irc. What I need to know is,
- how can I pass strings to the program irc once it is running? I have
- tried using fprintf to stdin thinking it would take that as input from
- the keyboard and pass it along to irc but that did not work. I also
- tried using the system() function again but it passes commands to the
- shell. I am not sure how to do this. Irc takes input from the keyboard
- so I thought that writing to stdin would work, but it didnt. If it helps
- any I am using a gcc compiler on a Unix system. Any help that can be
- given will be appreciated. Thanks in advance.
-
- - Nicholas Paldino
- - np1010@cnsunix.albany.edu
-